]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Clear keyboard rest timer when opening immediately
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 20 Feb 2021 11:33:29 +0000 (12:33 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 12 Mar 2021 15:56:12 +0000 (15:56 +0000)
When immediate is true on open(), we want to show the OSK immediately,
it also makes sense to cleanup the keyboard rest timer in that case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1728>

js/ui/keyboard.js

index f411cf1457b209af8be0e9b5ca1263d7ec6bf686..2d7e5066448756d6069bc6a6f4d6798266471c3f 100644 (file)
@@ -1743,12 +1743,13 @@ var Keyboard = GObject.registerClass({
             return;
         }
 
+        this._clearKeyboardRestTimer();
+
         if (immediate) {
             this._open();
             return;
         }
 
-        this._clearKeyboardRestTimer();
         this._keyboardRestingId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
             KEYBOARD_REST_TIME,
             () => {